package com.ruoyi.common.entity.CoreEntity.store;

import com.baomidou.mybatisplus.annotation.TableLogic;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商户基本信息对象 store_info
 * 
 * @author Sxz
 * @date 2025-08-07
 */
public class StoreInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商户ID */
    private Long id;

    /** 商户名称 */
    @Excel(name = "商户名称")
    private String name;

    /** 商户编码（用于唯一标识商户） */
    @Excel(name = "商户编码", readConverterExp = "用=于唯一标识商户")
    private String code;

    /** 商户类型（1-连锁超市，2-便利店，3-个体户等） */
    @Excel(name = "商户类型", readConverterExp = "1=-连锁超市，2-便利店，3-个体户等")
    private Long type;

    /** 商户LOGO图片地址 */
    @Excel(name = "商户LOGO图片地址")
    private String logoUrl;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String contactName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 联系邮箱 */
    @Excel(name = "联系邮箱")
    private String email;

    /** 商户状态（0-禁用，1-启用） */
    @Excel(name = "商户状态", readConverterExp = "0=-禁用，1-启用")
    private Long status;

    /** 逻辑删除标志（0-未删除，1-已删除） */
    @TableLogic
    private String delFlag;

    /** 营业模式（1-统一时间，2-周末延长，3-周末高峰，4-24小时营业） */
    @Excel(name = "营业模式", readConverterExp = "1=-统一时间，2-周末延长，3-周末高峰，4-24小时营业")
    private Long businessPattern;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setLogoUrl(String logoUrl) 
    {
        this.logoUrl = logoUrl;
    }

    public String getLogoUrl() 
    {
        return logoUrl;
    }

    public void setContactName(String contactName) 
    {
        this.contactName = contactName;
    }

    public String getContactName() 
    {
        return contactName;
    }

    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setBusinessPattern(Long businessPattern) 
    {
        this.businessPattern = businessPattern;
    }

    public Long getBusinessPattern() 
    {
        return businessPattern;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("type", getType())
            .append("logoUrl", getLogoUrl())
            .append("contactName", getContactName())
            .append("contactPhone", getContactPhone())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("businessPattern", getBusinessPattern())
            .toString();
    }
}
